<template>
  <div class="container">
    <van-nav-bar
      @click-left="$router.back(-1)"
      title="宠物配对"
      left-text="返回"
      left-arrow
    >
      <!-- <template #right>
        <van-icon name="search" size="18" />
      </template> -->
    </van-nav-bar>
    <div class="animals">
      <p>种类</p>
      <ul>
        <li>狗狗</li>
        <li>猫咪</li>
        <li>兔子</li>
        <li>其他</li>
      </ul>
    </div>
    <div class="dogs">
      <p>品种</p>
      <ul>
        <li>哈士奇</li>
        <li>柯基</li>
        <li>柴犬</li>
        <li>博美</li>
        <li>柴犬</li>
        <li>博美</li>
      </ul>
      <div><span>显示全部</span></div>
    </div>
    <div class="kards">
      <ul>
        <li>
          <img src="../assets/img/bomei1.jpg" alt="" />
          <div>
            <span>博美</span>
            <span>公</span>
            <span>2岁</span>
          </div>
        </li>
        <li>
          <img src="../assets/img/shapi1.jpg" alt="" />
          <div>
            <span>博美</span>
            <span>公</span>
            <span>2岁</span>
          </div>
        </li>
        <li>
          <img src="../assets/img/shapi1.jpg" alt="" />
          <div>
            <span>博美</span>
            <span>公</span>
            <span>2岁</span>
          </div>
        </li>
        <li>
          <img src="../assets/img/0221013203534.jpg" alt="" />
          <div>
            <span>博美</span>
            <span>公</span>
            <span>2岁</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
li {
  list-style-type: none;
}
p {
  margin: 0;
}
.container {
  box-sizing: border-box;
  font-size: 14px;
  background-image: url("../assets/img/bg.jpg");
  background-repeat: no-repeat;
  color: #fff;
}
.animals {
  padding: 10px;
}
.animals > p {
  margin: 10px;
}
.animals > ul {
  display: flex;
}
.animals > ul > li {
  margin: 0 8px;
  padding: 8px 10px;
}
.dogs {
  padding: 6px 10px;
}
.dogs > p {
  margin: 0 10px 10px;
}
.dogs > ul {
  display: flex;
}
.dogs > ul > li {
  padding: 6px 10px;
}
.dogs > div {
  font-size: 0.8em;
  text-align: center;
}
.kards > ul {
  display: flex;
  flex-wrap: wrap;
  padding: 15px;
  justify-content: space-between;
}
.kards > ul > li {
  width: 48%;
  border-radius: 12px;
  border: 1px solid #999;
  overflow: hidden;
  position: relative;
  /* margin-top: 15px; */
}
.kards > ul > li > img {
  width: 100%;
  height: 100%;
  display: block;
}
.kards > ul > li > div {
  position: absolute;
  left: 10px;
  bottom: 12px;
}
.kards > ul > li:nth-child(2n + 1) {
  margin-top: 20px;
}
.kards > ul > li:nth-child(2n) {
  margin-bottom: 20px;
}
.animals > ul > li:hover {
  background-color: #00f;
  border-radius: 20px;
}
.dogs > ul > li:hover {
  background-color: #00f;
  border-radius: 20px;
}
.van-nav-bar {
  background-image: url("../assets/img/bg.jpg");
}
</style>
